/**
 *Filename: article_detail.scss
 *Author: xhh
 *Description: 文章详情页，还没有编译的文件，用的是sass语法写
 *Date: 2018.03.27
 */
// 引入统一，清除各浏览器的默认和差异性
@import "reset.scss";
// 引入公用
@import "base.scss";
/* 背景图 start */
body {
    height: 100%;
    width: 100%;
    background-image: url(../img/article/detail/body_bg.png);
    // background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
}
/* 背景图 end */

/* 文章详情页主体 start */
.site-article-detail-wrapper {
    margin-top: 398px;
    .site-article-detail {
        position: relative;
        max-width: 90%;
        margin: 0 auto;
        border-bottom: 4px solid #EDEDED;
        background-color: #fff;
    }
    .article-detail {
        max-width: 90%;
        padding: 4% 0 6%;
        margin: 0 auto;
    }
    // 文章标题
    .article-header {
        display: flex;
        justify-content: space-between;
        margin: 0 0 1.5rem;
        h1 {
            font-size: 1.6rem;
            width: 70%;
            line-height: 1.2;
        }
    }
    // 返回图标
    .icon-back {
        display: inline-block;
        width: 27px;
        height: 27px;
        background: url(../img/article/detail/icon_back.png) no-repeat center;
        background-size: cover;
        cursor: pointer;
    }
    // 文章文字
    .article-txt {
        p { 
            line-height: 1.8;
            margin-top: 1.5rem;
            &:first-child::first-letter{
                float: left;
                font-size:4em;
                padding:0 1.2rem;
                line-height: 1.2;
                text-transform:uppercase;
               
            }
        }
        img {
            max-width: 100%;
            float: right;
            margin-top: 1.5rem;
        }
    }
    .article-detail-tag {
        margin-top: 3rem;
        a {
            padding: .8rem 1.5rem;
            margin: 0 .5rem;
            font-size: .875rem;
            text-transform: capitalize;
            color: #000;
            background-color: #f9f9f9;
            &:hover {
                text-decoration: underline;
            }
        }
    }
}
/* 文章详情页主体 end */


 /* 其他文章推荐 start */
.site-other-article {
    padding-bottom: 2.5rem;  
    margin-top: 3rem;
    background-color: #202020;
    color: #fff;
    .other-article-box {
        max-width: 1080px;
        margin: 0 auto;
    }
    // 标题
    .other-article-header {
        h2 {
            border-bottom: 2px solid #fff;
            padding-top: .8rem;
            color: #fff;
            font-size: 1.4rem;
            text-transform: uppercase;
            line-height: 2.4;
            font-weight: 500;
        }
    }
    // 文章内容
    .other-article-list {
        display: flex;
        flex-flow: wrap;
        li {
            width: 33.33%;
            display: flex;
            margin-top: 1.6rem;
            a {
                overflow: hidden;
            }
            img {
                transition: all .3s linear;
                max-width: 100%;
                &:hover {
                    transform: scale(1.1,1.1);
                    transition: all .3s linear;
                }
            }
        }
        .article-title {
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            align-items: flex-end;
            padding: .4rem 1.2rem;
            h3 {
                line-height: 2;
                font-weight: 500;
            }
            a {
                color: #fff;
                &:hover {
                    // text-decoration: underline;
                    border-bottom: 1px dashed #fff;
                }
            }
            .icon-view {
                display: inline-block;
                width: 22px;
                height: 14px;
                margin-right: .6rem;
                background: url(../img/article/detail/icon_view.png) no-repeat center;
                background-size: cover;
            }
        }
    }
}
 /* 其他文章推荐 end */